package com.twu.biblioteca;

/**
 * Created by jjwang on 4/23/14.
 */
public class User {
    String username;
    String password;

    String name;
    String email;
    String phone;

    public User(String username, String password, String name, String email, String phone) {
        this.username = username;
        this.password = password;
        this.name = name;
        this.email = email;
        this.phone = phone;
    }

    public boolean equals(User user){
        if(user.getUsername().equals(username))
            return true;
        return false;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String userInfo(){
        String info;
        info = "Name: "+this.name +"\n";
        info += "Email: "+this.email +"\n";
        info += "Phone: "+this.phone +"\n";
        return info;
    }
}
